﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NLog;

namespace SportsStoreLogService
{
  public class LogDetails
  {
    public LogDetails(LogEventInfo logEvent)
    {
      TimeStamp = logEvent.TimeStamp;
      Exception = logEvent.Exception;
      Level = logEvent.Level;
      LoggerName = logEvent.LoggerName;
      Message = logEvent.Message;
      Parameters = logEvent.Parameters;
      UserStackFrame = logEvent.UserStackFrame;
    }

    public DateTime TimeStamp { get; set; }

    public LogLevel Level { get; set; }
    public StackFrame UserStackFrame { get; set; }
    public StackTrace StackTrace { get; set; }

    public Exception Exception { get; set; }

    public string LoggerName { get; set; }
    public string Message { get; set; }

    public object[] Parameters { get; set; }
  }
}
